
export default function handler(req, res) {
  if (req.method !== 'POST') {
    res.status(400).send({ message: 'Only POST requests allowed' })
    return
  }

  const body = req.body ? JSON.parse(req.body) : {}
  res.status(200).send({ message: 'init success' })
  console.log('body',body)
  // the rest of your code
}
